<template>
  <div>
    <div class="rect2" style="top:377px"></div>
    <div class="wrap">
      <div class="qk-title flex-row-center-center" style="width:calc(100% + 2px);margin-left:-1px">
        <img src="@/assets/chevronRight.png" alt width="20" height="20" />
        <router-link :to="{name:'overview',query:{name: 'index',selTab: '井组信息',selType: '事故信息', curJz:curJz}}">
        <div class="qk-title-num flex-row-start-start" style="margin-left:0px">
            <div>井口示踪剂 数量:</div>
            <div style="color:#ffffff;margin-left:10px;border-bottom:2px solid #ffffff">{{cqxlNum}}</div>
            <div>个</div>
        </div>
        </router-link>
        <img src="@/assets/chevronleft.png" alt width="20" height="20" />
      </div>
      <div>
        <div class="kq-table">
          <div class="flex-row-start-start">
            <div class="kq-table-id table-title-style">库区</div>
            <div class="kq-table-title table-title-style">检测点</div>
            <div class="kq-table-title  table-title-style">检测数值</div>
            <div class="kq-table-time table-title-style" style="width:30%">检测时间</div>
          </div>
          <div class="scroll-container">
            <div v-for="(item,index) in cqxlList" :key="item.jcEventId" class="table-unit flex-row-center-center" >
              <div class="kq-table-id  table-unit-value1">{{item.kqName}}</div>
              <div class="kq-table-title  table-unit-value1">{{item.jcdName}}</div>
              <div class="kq-table-title table-unit-value1" :style="{ color: item.jcValue !== 0 ? 'red' : 'black' }">{{item.jcValue}}</div>
              <div class="kq-table-time" style="width:30%">
                <div class="  table-unit-value2" >{{item.jcTime}}</div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>


export default {
    data(){
        return{
            update:0,
            tableData: [
            {id: 1,ck_id: "XL0304",time:'20200812',type:'本井组渗出',jz:'LZ0231'},
            {id: 2,ck_id: "XL0304",time:'20200812',type:'本井组渗出',jz:'LZ0231'},
            ]
        }
    },
    components:{
         
    },
    props:{
      cqxlNum:Number,
      cqxlList:Array,
      curJz:String
    },
    watch:{
    },
    mounted(){
        
    }
};
</script>
<style  scoped>
.table-unit-value1 {
  color: black;
  font-size: 14px;
  text-align: center;
  font-family: SourceHanSansSC-regular;
}
.table-unit-value2 {
  color: black;
  font-size: 14px;
  text-align: center;
  font-family: SourceHanSansSC-regular;
}
.table-unit {
  height: 44px;
  line-height: 20px;
  color: black;
  font-size: 14px;
  text-align: center;
  font-family: Roboto;
  /* border: 1px solid rgba(255, 255, 255, 100); */
}
.kq-table {
  margin-top: 17px;
  margin-left: 10px;
  margin-right: 10px;
}
.kq-table-id {
  width: 10%;
}
.kq-table-title {
  width: 30%;
}
.kq-table-time {
  width: 32.5%;
}
.table-title-style {
  height: 20px;
  color: black;
  font-size: 14px;
  text-align: center;
  font-family: SourceHanSansSC-regular;
}
.qknum-content-value {
  color:black;
  font-size: 14px;
  text-align: center;
}
.qknum-content-unit {
  color: rgba(35, 125, 191, 100);
  font-size: 20px;
  text-align: left;
  font-family: SourceHanSansSC-regular;
}
.qknum-content-value {
  width: 100%;
  height: 45px;
  line-height: 20px;
  background-color: rgba(9, 48, 104, 100);
  text-align: center;
  /* border: 1px solid  rgba(9, 48, 104, 100); */
}

.wrap {
  width: 100%;
  height: 218px;
  line-height: 20px;
  opacity: 0.82;
  background-color:transparent;
  color: rgba(16, 16, 16, 100);
  font-size: 14px;
  text-align: center;
  box-shadow: 0px 2px 6px 0px rgba(255,157,160, 60);
  font-family: Roboto;
  border: 1px solid #cc0000;
}
.scroll-container {
  height: 120px; /* 你可以根据需要设置高度 */
  overflow-y: auto; /* 启用垂直滚动条 */
  margin-top: 12px;
}
/* 自定义滚动条轨道 */
.scroll-container::-webkit-scrollbar {
  width: 12px; /* 垂直滚动条的宽度 */
}

/* 自定义滚动条轨道的轨道 */
.scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1; /* 轨道颜色 */
  border-radius: 6px; /* 轨道圆角 */
}

/* 自定义滚动条轨道的滑块 */
.scroll-container::-webkit-scrollbar-thumb {
  background: #888; /* 滑块颜色 */
  border-radius: 6px; /* 滑块圆角 */
  border: 3px solid #f1f1f1; /* 添加边框 */
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2); /* 添加阴影 */
}

/* 自定义滚动条轨道的滑块:hover状态 */
.scroll-container::-webkit-scrollbar-thumb:hover {
  background: #555; /* 滑块hover颜色 */
}
</style>